<template>
  <van-sticky>
    <van-nav-bar
      title="成品入库"
      left-text="返回"
      left-arrow
      @click-left="$router.replace('/home')"
    />
    <van-tabs v-model:active="active" animated @change="onChange">
      <van-tab title="待入库"></van-tab>
      <van-tab title="全部"></van-tab>
    </van-tabs>
  </van-sticky>
  <div style="height: 0.1rem"></div>

  <common-store :descObj="descObj" ref="commonStoreRef"></common-store>
</template>


<script setup >
import { ref, reactive } from "vue";
import { useRouter } from "vue-router";
import { tip, get, post, del, removeLocalToken, store } from "@/common";
import commonStore from "@/components/common-store.vue";

const commonStoreRef = ref();

const active = ref(0);
const onChange = (index, title) => {
  if (index == 0) {
    commonStoreRef.value.refresh({ pd_id: 3010, pageNo: 1 });
  } else {
    commonStoreRef.value.refresh({ pageNo: 1 });
  }
};

const descObj = {
  urlMark: "store",
  markName:'入库',

  previousPdIds: [3010],
  currentPdId: 3020

  
};
</script>

<style scoped >
</style>